package com.cqupt.tr.edgenode.controller;

import api.EdgeRequest;
import api.EdgeRequestWithAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import service.EdgeService;


@RestController
public class EdgeController {

    @Autowired
    private EdgeService edgeService;

    @PostMapping(value = "/revieceRequest")
    public String recieveRequest(@RequestBody EdgeRequestWithAccount request){

     edgeService.getContent(request);

        return null;
    }
}
